package com.zhiche.lisa.bms.dao.mapper.fee;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.zhiche.lisa.bms.dao.model.fee.FeeAssessment;
import com.zhiche.lisa.bms.pojo.vo.fee.FeeAssessmentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 考核奖惩费用 Mapper 接口
 * </p>
 *
 * @author WangShuiJin
 * @since 2018-09-20
 */
public interface FeeAssessmentMapper extends BaseMapper<FeeAssessment> {

    /**
     * 根据账款查询考核单
     *
     * @param feePayableId
     * @param ids
     * @return
     */
    List<Long> getFeeAssessmentSumByFeepIdAndIds(@Param("feePayableId") Long feePayableId, @Param("ids") List<Long> ids);

    /**
     * 无登录查询
     *
     * @param ew
     * @return
     */
    List<FeeAssessment> selectListNoTenant(@Param("ew") Wrapper<FeeAssessment> ew);

    /**
     * 根据支付申请id获取对应的考核单
     *
     * @param payId
     * @return
     */
    List<FeeAssessmentVO> getFeeAssessmentVoListByPayApplyId(@Param("payId") Long payId);
}
